home *** CD-ROM | disk | FTP | other *** search
- ;;; Compiled by f2cl version 2.0 beta 2002-05-06
- ;;;
- ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
- ;;; (:coerce-assigns :as-needed) (:array-type ':simple-array)
- ;;; (:array-slicing nil) (:declare-common nil)
- ;;; (:float-format double-float))
-
- (in-package "SLATEC")
-
-
- (let ((nalgm 0)
- (xbig 0.0)
- (xmax 0.0)
- (algmcs (make-array 15 :element-type 'double-float))
- (first nil))
- (declare (type f2cl-lib:logical first)
- (type (simple-array double-float (15)) algmcs)
- (type double-float xmax xbig)
- (type f2cl-lib:integer4 nalgm))
- (f2cl-lib:fset (f2cl-lib:fref algmcs (1) ((1 15))) 0.16663894804518634)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (2) ((1 15))) -1.3849481760675642e-5)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (3) ((1 15))) 9.810825646924729e-9)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (4) ((1 15))) -1.8091294755724946e-11)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (5) ((1 15))) 6.221098041892607e-14)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (6) ((1 15))) -3.399615005417722e-16)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (7) ((1 15))) 2.683181998482699e-18)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (8) ((1 15))) -2.8680424353346434e-20)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (9) ((1 15))) 3.962837061046434e-22)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (10) ((1 15))) -6.831888753985766e-24)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (11) ((1 15))) 1.4292273559424978e-25)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (12) ((1 15))) -3.547598158101071e-27)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (13) ((1 15))) 1.0256800580104711e-28)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (14) ((1 15))) -3.401102254316749e-30)
- (f2cl-lib:fset (f2cl-lib:fref algmcs (15) ((1 15))) 1.2766421956300628e-31)
- (setq first f2cl-lib:%true%)
- (defun d9lgmc (x)
- (declare (type double-float x))
- (prog ((d9lgmc 0.0))
- (declare (type double-float d9lgmc))
- (cond
- (first
- (setf nalgm (initds algmcs 15 (f2cl-lib:freal (f2cl-lib:d1mach 3))))
- (setf xbig (/ 1.0 (f2cl-lib:fsqrt (f2cl-lib:d1mach 3))))
- (setf xmax
- (exp
- (min (f2cl-lib:flog (/ (f2cl-lib:d1mach 2) 12.0))
- (- (f2cl-lib:flog (* 12.0 (f2cl-lib:d1mach 1)))))))))
- (setf first f2cl-lib:%false%)
- (if (< x 10.0) (xermsg "SLATEC" "D9LGMC" "X MUST BE GE 10" 1 2))
- (if (>= x xmax) (go label20))
- (setf d9lgmc (/ 1.0 (* 12.0 x)))
- (if (< x xbig)
- (setf d9lgmc
- (/ (dcsevl (- (* 2.0 (expt (/ 10.0 x) 2)) 1.0) algmcs nalgm)
- x)))
- (go end_label)
- label20
- (setf d9lgmc 0.0)
- (xermsg "SLATEC" "D9LGMC" "X SO BIG D9LGMC UNDERFLOWS" 2 1)
- (go end_label)
- end_label
- (return (values d9lgmc nil)))))
-
-